package com.hzw.saas.web.admin.rbac.param;

import java.io.Serializable;
import javax.validation.constraints.NotNull;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @author zzl
 * @since 08/31/2021
 */
@Data
@ApiModel("权限查询参数")
public class PermissionsListParam implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "所属系统, 1:后台管理用户, 2:云平台用户",required = true)
    @NotNull(message = "所属系统不可为空")
    private Integer sys;

    @ApiModelProperty(value = "父级权限ID, 根权限父级ID为0")
    private String supId;

    @ApiModelProperty(value = "获取权限树层级，空或小于0为获取所有")
    private Integer level;

    @ApiModelProperty(value = "指定权限类型")
    private Integer[] types;
}
